package structure;

import java.util.ArrayList;

public class position {

	private int i;
	private int j;
	private ArrayList<String> s;
	
	public position(){
		
		this.i= 0;
		this.j= 0;
		this.s= new ArrayList<String>();
	}
	
	public position(int paramI, int paramJ, String paramS){
		
		this.i= paramI;
		this.j= paramJ;
		this.s= new ArrayList<String>();
		this.s.add(paramS);
	}
	
	public int getI(){
		
		return this.i;
	}
	
	public int getJ(){
		
		return this.j;
	}
	
	public ArrayList<String> getS(){
		
		return this.s;
	}
	
	public void add(String a){
		
		if(!this.s.contains(a))
			this.s.add(a);
	}
	
	public void printIt(){
		
		System.out.print("position <" + this.i + ", " + this.j + "> => [ ");
		for(String a : this.s){
			
			System.out.print(a + ", ");
		}
		System.out.println("]");
	}
	
	public void printItOrganized(){
		
		
		for(String a : this.s){
			
			System.out.print(a + ", ");
		}
		System.out.print(" |  ");
	}
}
